package modele;

import modele.adresse.Adresse;
import modele.contact.Personne;
import modele.contact.Professionnel;
import modele.mail.AdresseMail;
import modele.mail.AdresseMailPro;
import modele.stockage.Carnet;
import modele.stockage.CarnetException;

public class Test {

	/**
	 * @param args
	 * @throws CarnetException 
	 */
	public static void main(String[] args) throws CarnetException {
		Carnet carnet = new Carnet();
		
		Personne p1 = new Personne("pancho","blabla", "", "", "", new Adresse("22","rue des fouines","Bagdad","27865","Irak"), new AdresseMail("pofn,dein","prout"));
		Personne pBis = new Personne("pancho","blabla", "", "", "", new Adresse("22","rue des fouines","Bagdad","27865","Irak"), new AdresseMail("pofn,dein","prout"));
		
		Professionnel pro1 = new Professionnel("pancho","blabla", "", "", "", new Adresse("22","rue des fouines","Bagdad","27865","Irak"), new AdresseMail("pofn,dein","prout"),"0654645566",new AdresseMailPro("pofn,dein","prout"));
		Professionnel proBis = new Professionnel("pancho","blabla", "", "", "", new Adresse("22","rue des fouines","Bagdad","27865","Irak"), new AdresseMail("pofn,dein","prout"),"0654645566",new AdresseMailPro("pofn,dein","prout"));
		
		carnet.ajouter(p1);
		carnet.ajouter(pro1);
		//carnet.ajouter(pBis);
		carnet.ajouter(proBis);
		
		//carnet.modifier(p1, proBis);
		//carnet.suppression(proBis);
		System.out.println(pro1.equals(proBis));
		//System.out.println(carnet.chercherContact(pBis));
		
		System.out.println(carnet);
		
	}
}
